import { defHttp } from '@/utils/http/axios';
// 查询抖音配置信息列表
export function listTiktokInfo(query, data) {
  return defHttp.post({
    url: '/sys/tiktok/manage/list',
    method: 'post',
    params: query,
    data: data,
  });
}

// 添加抖音配置
export function saveTiktokInfo(data) {
  return defHttp.post({
    url: '/sys/tiktok/manage/saveTiktokInfo',
    method: 'post',
    data: data,
  });
}

// 修改抖音配置信息
export function updateTiktokInfo(data) {
  return defHttp.post({
    url: '/sys/tiktok/manage/updateTiktokInfo',
    method: 'post',
    data: data,
  });
}

// 删除抖音配置信息
export function deleteTiktokInfo(id) {
  return defHttp.post({
    url: '/sys/tiktok/manage/deleteTiktokInfo/' + id,
    method: 'post',
  });
}

// 获取抖音配置信息
export function details(id) {
  return defHttp.post({
    url: '/sys/tiktok/manage/details/' + id,
    method: 'post',
  });
}
